﻿$(document).ready(function() {
    $("#username").focus();
    $("#form_login").validate(
        {
            rules: {
                username: {
                    required: true

                },
                password: {
                    required: true,
                    minlength: 6
                }
            },
            messages: {

                username: {
                    required: "请输入您的用户名"

                },
                password: {
                    required: "请输入密码",
                    minlength: "密码最少6位"
                }


            },
            success: function(label) {
                // set &nbsp; as text for IE
                label.html("&nbsp;").addClass("checked");
            }
        });
});
